\section{model::title Class Reference}
\label{classmodel_1_1title}\index{model::title@{model::title}}
This class represents a title.  


{\tt \#include $<$title.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\bf{title} ()\label{classmodel_1_1title_b2154a4326ce071bfa9fbe51194032e0}

\item 
\bf{title} (const \bf{model::dom} \&node)
\begin{CompactList}\small\item\em title creates a title from a dom-node \item\end{CompactList}\item 
\bf{title} (const string \&tit, int dur)
\begin{CompactList}\small\item\em title creates a title \item\end{CompactList}\item 
\bf{$\sim$title} ()\label{classmodel_1_1title_55a44ca56121cdf21f6b3b834368749c}

\item 
void \bf{parse} (const \bf{model::dom} \&node)
\begin{CompactList}\small\item\em parse parses a dom-node \item\end{CompactList}\item 
void \bf{set\_\-title} (const string \&t)\label{classmodel_1_1title_75315a666e03adfd584555050bc00817}

\begin{CompactList}\small\item\em set\_\-title sets the name of the title \item\end{CompactList}\item 
const string \& \bf{get\_\-title} () const \label{classmodel_1_1title_82dad1de6825cb58f541b65b9a5f7f0c}

\begin{CompactList}\small\item\em get\_\-title returns the name of the title \item\end{CompactList}\item 
void \bf{set\_\-filename} (const string \&f)\label{classmodel_1_1title_dd6fef7f18532ec2de55145efd7fe852}

\begin{CompactList}\small\item\em set\_\-filename sets the filename of the title \item\end{CompactList}\item 
const string \& \bf{get\_\-filename} () const \label{classmodel_1_1title_f1324d7203d9b46ae3a9302f87d4a0c3}

\begin{CompactList}\small\item\em get\_\-filename returns the filename of the title \item\end{CompactList}\item 
void \bf{set\_\-duration} (int dur)\label{classmodel_1_1title_e64eaf785f4fbbc45401bb3db9825cd7}

\begin{CompactList}\small\item\em set\_\-duration sets the duration of the title \item\end{CompactList}\item 
int \bf{get\_\-duration} () const \label{classmodel_1_1title_06d549c0d1d624329d185adb9a8ddfde}

\begin{CompactList}\small\item\em get\_\-duration returns the duration of the title \item\end{CompactList}\item 
void \bf{print} () const \label{classmodel_1_1title_66ef22d7839856d390990295d1917726}

\begin{CompactList}\small\item\em print prints the title. Only for debug purposes. \item\end{CompactList}\item 
string \bf{to\_\-xml} () const \label{classmodel_1_1title_6a595227877eacbccb3f68460d120165}

\begin{CompactList}\small\item\em to\_\-xml converts the title to a xml-structure \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This class represents a title. 



Definition at line 40 of file title.h.

\subsection{Constructor \& Destructor Documentation}
\index{model::title@{model::title}!title@{title}}
\index{title@{title}!model::title@{model::title}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}model::title::title (const \bf{model::dom} \& {\em node})}\label{classmodel_1_1title_69619c5ec5563b56ece343e974be712f}


title creates a title from a dom-node 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]is the node from which the title should be created \end{description}
\end{Desc}


Definition at line 3 of file title.cpp.

\begin{Code}\begin{verbatim}4 {
5         parse(node);
6 }
\end{verbatim}\end{Code}


\index{model::title@{model::title}!title@{title}}
\index{title@{title}!model::title@{model::title}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}model::title::title (const string \& {\em tit}, int {\em dur})\hspace{0.3cm}{\tt  [inline]}}\label{classmodel_1_1title_8202a09779dd02ddba44a92aeadc0db1}


title creates a title 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tit}]is the name of the title \item[{\em dur}]is the duration of the title \end{description}
\end{Desc}


Definition at line 56 of file title.h.

\begin{Code}\begin{verbatim}56 : _title(tit), _duration(dur){}
\end{verbatim}\end{Code}




\subsection{Member Function Documentation}
\index{model::title@{model::title}!parse@{parse}}
\index{parse@{parse}!model::title@{model::title}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void model::title::parse (const \bf{model::dom} \& {\em node})}\label{classmodel_1_1title_a684e2c009905839ae0b60b2e864c577}


parse parses a dom-node 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]is the node which should be parsed. \end{description}
\end{Desc}


Definition at line 8 of file title.cpp.

\begin{Code}\begin{verbatim}9 {
10         _title = node.find_attrib("name");
11         _filename = node.find_attrib("file");
12         stringstream ss;
13         ss.str(node.find_attrib("duration"));
14         ss >> _duration;
15 }
\end{verbatim}\end{Code}




The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
model/title.h\item 
model/title.cpp\end{CompactItemize}
